package Shifu.Login;

import java.io.*;
import java.net.*;
import java.rmi.server.*;


/**
 * Scaricare il reale client dal codebase
 * per accedere al sistema
 */

public class BootStrap {

	//static final String codebase = "http://192.168.1.8/codebase/";
	static final String clientClass = "Shifu.Login.ClientLogin";

	public static void main(String[] args) throws Exception {

		System.setSecurityManager(new SecurityManager()); //Creazione del securityManager
		System.out.println("Download del client in corso da: "+args[1]);
		Class classClient = RMIClassLoader.loadClass(args[1],clientClass);
		Runnable client = (Runnable) classClient.newInstance();
		client.run();
	}
}
